* {
    margin: 0;
    padding: 0;
}

.main {
    width: 100%;
    height: 100vh;
    background: #f0eeee;
}

.top {
    width: 1005px;
    height: 8%;
}

.container {
    display: block;
    width: 69%;
    height: 85%;
    background-color: #ffffff;
    margin: 0 auto;
}

.head {
    border-bottom: 1px solid #f0eeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 12%;
    position: relative;
}

.head .title {
    font-size: 16px;
    font-weight: 600;
}

.head .outline {
    margin-top: 5px;
    color: #9aa0aa;
    font-size: 10px;
}


.end {
    height: 33%;
    width: 100%;
    border-top: 1px solid #f0eeee;
}

.end_cont {
    height: 88%;
    width: 95%;
    margin: 0 auto;
    border-left: 1px solid #e2e2e2;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    border-right: 5px solid #e2e2e2;
    padding-left: 2%;
}


.but {
    color: #fff;
    background-color: #165dff;
    border: 1px solid transparent;
    font-size: 14px;
    width: 70px;
    height: 30px;
    margin-top: 12px;

}

.but:hover {
    cursor: pointer;
}

.intext {
    display: block;
    width: 95%;
    height: 50%;
    border: none;
    resize: none;
}

.intext:focus {
    outline: none;
    border: 1px solid transparent;
}

/* 分界线------------------------- */

.chatBox {
    position: relative;
    width: 91%;
    height: 38%;
    padding: 50px;
    overflow-y: auto;
}

.message {
    position: relative;
    display: flex;
    width: 100%;
    margin: 5px 0;
}

.message p {
    position: relative;
    right: 0;
    text-align: right;
    max-width: 65%;
    padding: 12px;
    background: #dcf8c6;
    border-radius: 10px;
    font-size: 0.9em;
}

.message p::before {
    content: '';
    position: absolute;
    top: 0;
    right: -12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #dcf8c6 0%, #dcf8c6 50%, transparent 50%, transparent);
}

.message p span {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    opacity: 0.5;
}

.my_message {
    justify-content: flex-end;
}

.my_message p {
    font-size: 18px;
    text-align: left;
}

.frnd_message {
    justify-content: flex-start;
}

.frnd_message p {
    background: #f2f3f5;
    text-align: left;
    font-size: 18px;
}

.message.frnd_message p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -12px;
    width: 20px;
    height: 20px;
    background: linear-gradient(225deg, #f2f3f5 0%, #f2f3f5 50%, transparent 50%, transparent);
}

/* 新增样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    text-align: center;
    z-index: 1;
}


.navbar_div {
    width: 70%;
    margin: 0 auto;
}

.navbar_left {
    float: left;
}

.navbar_left li {
    display: inline-block;
    font-size: 0;
    width: 70px;
}

.navbar_left li a {
    font-size: 18px;
    text-decoration: none;
    color: black;
}

.navbar_right {
    float: right;
}

.navbar_right li {
    display: inline-block;
    font-size: 0;
    width: 70px;
    text-align: right;
}

.navbar_right li a {
    font-size: 18px;
    text-decoration: none;
    color: black;
}


.navbar a:hover {
    color: #fc4909;
}